/**
 * @Author: Bobby
 * @Date: 2021-12-30 10:01:42
 * @LastEditTime: 2022-01-08 12:28:10
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\project\bqms\router\index.js
 * @CIMC-V2
 */
import Layout from '@/vui/layouts'
//固定路由
export const constantRoutes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/components/login'),
    meta: {
      hidden: true,
    },
  },
  {
    path: '/apps',
    name: 'Apps',
    component: () => import('@/components/apps'),
    meta: {
      hidden: true,
    },
  },
  {
    path: '/toapp',
    name: 'ToApp',
    component: () => import('@/components/toapp'),
    meta: {
      hidden: true,
    },
  },
]

// 路由
export const asyncRoutes = [
  //匹配不到 就跳转到404
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'NotFound',
    meta: {
      hidden: true,
    },
  },
  //控制台页
  {
    path: '/',
    name: 'Root',
    component: Layout,
    meta: {
      title: '控制台',
      icon: 'home-2-line',
      breadcrumbHidden: true,
    },
    children: [
      {
        path: 'index',
        name: 'Index',
        component: () => import('../views/index'),
        meta: {
          title: '首页',
          icon: 'home-2-line',
          noClosable: true,
        },
      },
      // {
      //   path: 'outsourcing',
      //   name: 'outsourcing',
      //   component: () => import('../views/initialValue/outsourcing'),
      //   meta: {
      //     title: '外购设备池',
      //     icon: 'home-2-line',
      //   },
      // },
      // {
      //   path: 'outsourcingCost',
      //   name: 'outsourcingCost',
      //   component: () => import('../views/budgetAdministrator/outsourcingCost'),
      //   meta: {
      //     title: '外购费用',
      //     icon: 'home-2-line',
      //   },
      // },
    ],
  },
]
